home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 26 / Mac Magazin and MacEasy Magazine CD - Issue 26.iso / Wissenschaft & Technik / TimGA 1.1 ƒ / Graphs / (2) Bigger graphs / 18 - Cycle < prev    next >
Text File  |  1995-08-11  |  458b  |  56 lines

  1.  
  2. |V|:    48        // Number of nodes
  3. |E|:    48        // Number of edges
  4.  
  5.     1    2        // Edges are represented as pairs of node numbers...
  6.     2    3
  7.     3    4
  8.     4    5
  9.     5    6
  10.     6    7
  11.     7    8
  12.     8    9
  13.     9    10
  14.     10    11
  15.     11    12
  16.     12    13
  17.     13    14
  18.     14    15
  19.     15    16
  20.     16    17
  21.     17    18
  22.     18    19
  23.     19    20
  24.     20    21
  25.     21    22
  26.     22    23
  27.     23    24
  28.     24    25
  29.     25    26
  30.     26    27
  31.     27    28
  32.     28    29
  33.     29    30
  34.     30    31
  35.     31    32
  36.     32    33
  37.     33    34
  38.     34    35
  39.     35    36
  40.     36    37
  41.     37    38
  42.     38    39
  43.     39    40
  44.     40    41
  45.     41    42
  46.     42    43
  47.     43    44
  48.     44    45
  49.     45    46
  50.     46    47
  51.     47    48
  52.     48    1
  53.  
  54. ---
  55. This graph is a cycle.
  56.